<?php
/* @var $this MemGroupController */
/* @var $model MemGroup */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'mem-group-form',
	'enableClientValidation'=>true,
	'enableAjaxValidation'=>false,
)); ?>
	<?php echo $form->hiddenField($model,'type'); ?>

<ul class="form_list form_list2">
	<li><h3 class="ml_40"><?php echo $model->isNewRecord?"创建":"编辑"?>会员组</h3></li>
	<?php echo $form->errorSummary($model); ?>

	<li class="c_f">
		<span class="tit">会员组名称：</span>
		<div class="cont f_l">
			<?php echo $form->textField($model,'zmg_title',array('class'=>'t_ipt ipt_bg w_160')); ?>
			<?php echo $form->error($model,'zmg_title'); ?>
		</div>
	</li>
		
	<li class="c_f">
		<span class="tit">会员组描述：</span>
		<div class="cont f_l">
			<?php echo $form->textArea($model,'description',array('cols'=>80,'rows'=>5)); ?>
			<?php echo $form->error($model,'description'); ?>
		</div>
	</li>
	<?php if(!empty($model->zmg_id)){?>
	<?php $memtype = MemType::model()->getMemtype($model->zmg_id);if(!empty($memtype)){?>
	<li class="c_f">
		<span class="tit">默认会员等级：</span>
		<div class="cont f_l">
			<?php echo $form->radioButtonList($model,'zmt_id',$memtype,array('class'=>'radio')); ?>
			<?php echo $form->error($model,'zmt_id'); ?>
		</div>
	</li>
	<?php }}?>
	
	<li class="c_f"><span class="tit">&nbsp;</span>
		<div class="cont f_l">
			<?php echo CHtml::submitButton(Yii::t('adm','Save Date'),array('class'=>'mem_btn mem_btn20 mr5')); ?>
		</div>
	</li>
	
<?php $this->endWidget(); ?>

</div><!-- form -->